import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/element.js'

// 引入的是全局的样式
import './assets/css/global.css'
//添加全局的font组件库
import './assets/font/iconfont.css'

//导入这个可以进行跨域请求的一个axios的请求
import axios from 'axios'

Vue.prototype.$http = axios

//前端路由就是这个8081的端口，进行跨域的请求
axios.defaults.baseURL ="http://localhost:8081"
axios.defaults.withCredentials = true //跨域
axios.defaults.timeout = 10000
axios.defaults.headers.post['Content-Type'] = 'application/x-www=form-urlencoded'

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
